<!DOCTYPE html>
<!-- HTML5 Boilerplate -->
<!--[if lt IE 7]>
<html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="zh-CN"> <![endif]-->
<!--[if (IE 7)&!(IEMobile)]>
<html class="no-js lt-ie9 lt-ie8" lang="zh-CN"><![endif]-->
<!--[if (IE 8)&!(IEMobile)]>
<html class="no-js lt-ie9" lang="zh-CN"><![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="zh-CN">
<!--<![endif]-->

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title data-localize='title'>Universal Sources</title>
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <link href="../css/reset.css" rel="stylesheet" />
    <link href="../css/bootstrap.css" rel="stylesheet" />
    <link href="../css/nf.min.css" rel="stylesheet" />
    <link href="../css/swiper.min.css" rel="stylesheet" />
    <link href="../css/css.css" rel="stylesheet" />
    <link href="../css/zy.css" rel="stylesheet">
    <link rel="stylesheet" href="../css/jquery.page.css">
    <style>
    .first, .last{ width:auto}
    p{
    overflow : hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    }
    .highlight{background-color:yellow;padding:2px;}
    .tip{
        font-size: 10px;
        width:200px;
        height:80px;
        display:none;
        background-color:#f6f7f7;
        color:#333333;
        line-height:12px;
        border:1px solid #e1e3e2;
        padding:5px;
    }
    .handPoint:hover{
        cursor:pointer;
    }
    </style>
    <script src="../js/jquery.min.js"></script>
    <script type="text/javascript" src="../js/layer/layer.js"></script>
    <script type="text/javascript" src="../js/jquery.page.js"></script>
    <script type="text/javascript" src="../js/jquery.highlight.js"></script>
    <script type="text/javascript" src="../js/uaredirect.js"></script>
    <script type="text/javascript" >uaredirect("http://www.usources.cn/phoneZiyuan.html");</script>

</head>

<body>
    <!-- ========================= 通用导航 ======================== -->


    <hgroup class="navbar ">
        <div class="navbar-header container">
            <div class="navbar-brand">
                <a href="#" class="logo">
                    <!-- <img  src="images/logo.png"  alt="易点科技" draggable="false" class="img-sy"> --></a>
            </div>
            <div class="nav-right menu_nav">
                <ul>
                    <li></li>
                    <li></li>
                    <li></li>
                </ul>
            </div>
            <nav class="nav-right nav-top-l">
                <ul class="navbar-nav nav1 row">
                    <li>
                        <a href="index.html" data-localize='top.logo'>USources</a>
                        <sub class="sub1"></sub>
                    </li>
                    <li  class="cur">
                        <a href="ziyuan.html" data-localize='top.search'>Search</a>
                        <sub class="sub1"></sub>
                    </li>
                    <li>
                        <a href="jiaocheng.html" data-localize='top.teach'>Tutorial</a>
                        <sub class="sub1"></sub>
                    </li>
                    <li>
                        <a href="biaozhun.html" data-localize='top.API'>KnowledgeGraph</a>
                        <sub class="sub1"></sub>
                    </li>                 
                    <li>
                        <a href="page.html" data-localize='top.about'>AboutUs</a>
                        <sub class="sub1"></sub>
                    </li>
                    <li id="userbox">
                        <a href="login.html" data-localize='top.signin'>Login</a>
                        <a href="register.html" data-localize='top.signup'>Register</a>
                        <sub class="sub1"></sub>
                    </li>
                    <li id="langBox">
                        <a href="../index.html" data-lang='zh-CN'>中</a> &nbsp;|
                        <a href="#" data-lang="en-US">EN</a>
                        <sub class="sub1"></sub>
                    </li>
                </ul>
            </nav>	
        </div>
    </hgroup>
    <script type="text/javascript" src="../js/lib/jquery/jquery.cookie.js"></script>
    <script type="text/javascript" src="../js/lib/jquery/jquery.localize.js"></script>
    <!-- //////////////////////// 通用导航 结束 //////////////////////// -->
    <!-- ========================= 通用banner图 ======================== -->
    <div class="header1" style="height:320px;">
        <div class="flexslider" data-namespace="home-banner-" data-animation="slide" data-speed="5000" data-controls-container=".home-banner-controllers" data-control-nav=true data-direction-nav=false data-autoplay=true data-hover-pause=true>
            <ul class="slides clearfix">
                <li class="align-vertical" style="background:url(../images/search.jpg) no-repeat center center;background-size:cover">
                    <div class="vertical-inner">
                        <div class="container">
                            <!--  <p class="txt-tit"></p>-->
                            <div class="bBox" style="width: 80%;">
                                <center><span data-localize='ziyuan.banner'>Search</span></center>
                            </div>
                            <p class="h4 txt2 container" style="margin-top:0px;" data-localize='page.banner.value'>
                         【Semantic, Milti-Source, Linked - Structured Data downloading and invoking】
                            </p>
                        </div>           
                    </div>
                </li>
            </ul>
            
        </div>

    </div>
    <!-- //////////////////////// 通用banner图 结束 //////////////////////// -->
    <article>    
        <section class="partner_sec" style="padding-top: 15px;">
            <div class="container">
<!--  
    内容
-->
                <div class="bb">
                    <form action="" method="" class="form1 l">
                        <input type="text" id="keyWord" onKeyDown="keySearch()" placeholder="Remind：All concepts includ RDF,CSV,JSON download and HTTP REST interface" class="soso" data-localize='ziyuan.search.place'>
                        <button type="button" class="button" id="btnSearch" data-localize='ziyuan.search.btn'>Search</button>
                    </form>
                    <a href="/agent.html" class="shouchang r form1" id="mycollectnums" target="_blank"><span data-localize='ziyuan.search.collect'>我的收藏</span>（<span id="collectNums">请先登入</span> ）</a>
                    <a class="p4" data-localize='ziyuan.search.result'>（Filtering）</a>
                    <ul class="dq_info" style="margin-top: 5px;">
                        <li style="height: 28px;" id="areaBox">
                            <b class="l" data-localize='ziyuan.region.name'>Regions: </b>
                            <a href="javascript:;" class="active" data-init="all" data-type="region" data-localize='ziyuan.region.all'>ALL</a>
                            <a href="javascript:;" data-type="region" data-name="China" data-localize='ziyuan.region.BJ'>China</a>
                            <a href="javascript:;" data-type="region"  data-name="台湾" data-localize='ziyuan.region.TW'>Taiwan-China</a>  
                            <a href="javascript:;" data-type="region"  data-name="美国" data-localize='ziyuan.region.MG'>U.S.</a>  
							<a href="javascript:;" data-type="region"  data-name="Europe" data-localize='ziyuan.region.MG'>Europe</a>  

                            <!--  <a href="javascript:showDivFun('1')"> ... </a>-->
                        </li>
                        <li  id="domainsBox">
                            <b class="l" data-localize='ziyuan.field.name'>Domain:</b>
                            <a href="javascript:;"  data-init="all"  class="active" data-type="domains" data-localize='ziyuan.field.all'>ALL</a>           
                            <a href="javascript:;" data-type="domains"  data-name="政府" data-localize='ziyuan.field.gov'>Govern</a>
                            <a href="javascript:;" data-type="domains"  data-name="经济" data-localize='ziyuan.field.eco'>Economics</a>
                            <a href="javascript:;" data-type="domains"  data-name="教育" data-localize='ziyuan.field.edu'>Education</a>
                            <a href="javascript:;" data-type="domains"  data-name="医疗" data-localize='ziyuan.field.med'>Medicine</a>
                            <!--  <a href="javascript:showDivFun('2')">...</a>-->
                            <script>
                                //弹出调用的方法
                                function showDivFun(){
                                    document.getElementById('popDiv').style.display='block';
                                }
                                //关闭事件
                                function closeDivFun(){
                                    document.getElementById('popDiv').style.display='none';
                                }
                                </script>
                            <!-- 弹出窗口 -->
                            <div id="popDiv" class="mydiv" style="display:none;">
                                <div align="right" style="padding:2px;z-index:2000;font-size:12px;cursor:pointer;position:absolute;right:0;" onclick="closeDivFun()">
                                <span class="mydivspan">×</span>
                                </div>
                                <a href="/ziyuan.html" class="a3" data-localize='ziyuan.region.MG'>U.S.</a>
                            </div>
                        </li>
                    </ul>
                </div>
                
                
                <!-- 开始循环 -->   
                <div class="agentResult">
                   <div  id="agentResult" style="width:73%; float:left">
                   </div>
                    <div class="soso_right r" id="searchResultParent">
                        <h2 data-localize='ziyuan.recent'>Recent records</h2>
                        <ul class="j_list"  id="searchResult">
                          
                        </ul>
                    </div>
                </div>
                <!--/结束循环-->
                
                <!-- 分页 -->
                <div  id="pageNav" data-all="0">
                </div>
            </div>
        </section>

    </article>
    <!--底部-->
    <!--底部-->
       <footer>
        <div class="footer_con">
            <div class="container">
                <div class="row">
                    <div class="col-md-5 col-sm-5">
                        
                        <div class="tell_list">
                            <ul>
                                <li data-localize="foot.email">Mail: <font color="#fff">usources@aliyun.com</font><span style="padding-left: 55px;"></li>
								<li>Business Email: <font color="#fff">usources@aliyun.com</font></li>
                                <li data-localize="foot.location">Address：<font color="#fff">China Shanghai and United States Boston</font><span style="padding-left: 50px;"></li>
								<li>
                                    Phone(China)：<font color="#fff">+86&nbsp;18521701931(中)</font>
                                </li>
                                <li>
                                    Phone(U.S)：<font color="#fff">+1&nbsp;(413) 800-1429 (U.S.)</font>
                                </li>
								
                            </ul>
                        </div>
                    </div>

                    <div class="col-md-4 col-sm-4">
                        <div class="link_tit" data-localize="foot.info.more">More information</div>
                        <div class="link_list">
                            <ul>
                                <li><a href="javascript:void(0)" data-localize="foot.info.pri" style="color:#d6d2d2">Protect your privacy</a></li>
                                <li><a href="javascript:void(0)" data-localize="foot.info.join" style="color:#d6d2d2">Join us</a></li>
                            </ul>
                        </div>
                        <div class="consult" data-localize="foot.QQ" style="color:#c9d6e6">QQ discussion group: <font color="#fff">641885447</font></div>
                        <a href="tencent://message/?uin=362437439&amp;Site=hejun.com.cn&amp;Menu=yes" style="margin-right:5px;"><img src="../images/qq_consult.png"></a>
                        <a href="tencent://message/?uin=2306668066&amp;Site=hejun.com.cn&amp;Menu=yes"><img src="../images/qq_consult.png"></a>
                    </div>
                    <div class="col-md-3 col-sm-3">
                        <div class="link_tit" data-localize="foot.info.wx">WeChat public account:</div>
                        <div class="footer_code buzz-out"><img src="../images/code_icon.png" style="width: 120px"></div>
                        <div class="contact_icon">
                            <ul>
                                <li>
                                    <a href=""></a>
                                </li>
                                <li>
                                    <a href=""></a>
                                </li>
                                <li>
                                    <a href=""></a>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div id="tooltip" class="tip"></div> 
        <div class="copyright">
            <span style="margin-right:25px;color:#	5b5858" data-localize="foot.copyright">
Copyright © 2016-2017 Semantic (Shanghai) Information Technology Co., Ltd. All rights reserved.
			</span>
        </div>
    </footer>
	
	
    <!--弹窗-->
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
                    <h4 class="modal-title" id="myModalLabel"></h4>
                </div>
                <div class="modal-body">

                    <div class="form-group form-group-img">
                       <img src="../images/head_img.jpg" alt="">
                    </div>
                    <div class="form-group">
                        <input type="text" name="txt_username" class="form-control" id="txt_username" placeholder="账号">
                    </div>
                    <div class="form-group">
                        <input type="text" name="txt_password" class="form-control" id="txt_password" placeholder="密码">
                    </div>
                </div>
                <div class="modal-footer">
                   <div class="form-login">LOGIN</div>
                   <div style="text-align:left;line-height:30px;height:30"><a >LOST&nbsp;PASSWORD</a>&nbsp;&nbsp;&nbsp;&nbsp;<a >REGIST</a></div>
                </div>
            </div>
        </div>
    </div>
    <script src="../js/jquery.flexslider.min.js"></script>
    <script src="../js/swiper.min.js"></script>
    <script src="../js/jquery.easing.1.3.js"></script>
    <script src="../js/jquery.touchSwipe.min.js"></script>
    <script src="../js/main.js"></script>
    <script src="../js/jquery.carouFredSel-6.2.1.min.js"></script>
    <script src="../js/bootstrap.min.js"></script>
    <script>
        $(window).load(function () {
            $('.qode_carousels').find('.slides').carouFredSel({
                circular: true,
                responsive: true,
                scroll: {
                    items: 1,
                    duration: 1000,
                    pauseOnHover: false
                },
                items: {
                    <!-- width: 100, -->
                    visible: {
                        min: 1,
                        max: 9
                    }
                },
                auto: true,
                mousewheel: false,
                swipe: {
                    onMouse: true,
                    onTouch: true
                }
            }).animate({
                'opacity': 1
            }, 1000)

            $('.caroufredsel_wrapper').height($('.qode_carousels ul li.item').outerHeight());
        });

        /*******banner图*******/
        $('.flexslider').flexslider({
            animation: "fade",
            slideshow: true,
            animationSpeed: 1000,
            slideshowSpeed: 5000,
            animationSpeed: 1000, //滚动时间ms
            animationLoop: true,
            touch: true //是否支持触屏滑动
        });
        $('.flex-control-nav li a').html('');
        /*************case_sec**************/
        var mySwiper = new Swiper('.swiper-container', {
            nextButton: '.swiper-button-next',
            prevButton: '.swiper-button-prev',
            slidesPerView: 3,
            paginationClickable: true,
        });

        /**********partner_sec*****************/
        $('.flexslider2').flexslider({
            animation: "slide",
            slideshowSpeed: 10000, //展示时间间隔ms
            animationSpeed: 1000, //滚动时间ms
            controlNav: false,
            directionNav: true
        });
   

      
    </script>
    <script src="js/bootstrap.min.js"></script>
    <script>
    //注册新增按钮的事件
    $("#login").click(function () {
        $('#myModal').modal();
    });
    </script>
    
</body>

</html>
 <script type="text/javascript" src="../js/App.min.js"></script>
      <script>
	  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
	  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
	  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
	  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
	
	  ga('create', 'UA-86273919-1', 'auto');
	  ga('send', 'pageview');
	</script>
 <script type="text/javascript">
 
function  getQueryString(name){
	 var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
	 var r = window.location.search.substr(1).match(reg);
	 if(r!=null)return  unescape(r[2]); return null;
}
 var areas = getQueryString('areas')==null?'':getQueryString('areas');
 var domains = getQueryString('domains')==null?'':getQueryString('domains');
 var keyWord = getQueryString('keyWord')==null?'':getQueryString('keyWord');
 if(keyWord!=''){
    $('#keyWord').val(keyWord);	 
 }
  if(areas!=''){
    var areas_ar = areas.split(',');
	for(var i in areas_ar){
		$("a[data-name='"+areas_ar[i]+"']").addClass('active')
	}
 }
 if(domains!=''){
    var domains_ar = domains.split(',');
	for(var i in domains_ar){
		//alert(domains_ar[i]);
		$("a[data-name='"+domains_ar[i]+"']").addClass('active')
	}
 }
 var searchConfig = {
		domains:domains,
		keyWord:keyWord,
		regions:areas,
		pageSize:10,
		page:1,
	    condition:1
	};
$(function(){
	setTimeout(function(){
	  	getList();
	},500);
   $('#btnSearch').bind('click',function(){
	   var keyWord = $('#keyWord').val();
	   /*if(keyWord ==''){
		  layer.tips('请输入关键词', '#keyWord', {
			  tips: [1, '#f00'] //还可配置颜色
			});
		  return false;
	   }*/
	  searchConfig.keyWord = keyWord;   
	  searchConfig.condition = 1; 
	  searchConfig.page = 1;
	  getList();
   });	
	$('#areaBox  a').click(function(){
		var init = $(this).data('init');
		if(init == 'all'){
			 $('#areaBox  a').removeClass('active') ;
			 $(this).addClass('active') ;
			 updateConfig();
			 return false; 
		}else{
			$('#areaBox  a').eq(0).removeClass('active') ;
		}
		if($(this).data('type')!=undefined){
	      if($(this).hasClass('active')){
			  $(this).removeClass('active')  
		  }else{
			  $(this).addClass('active')  
		  }
		   updateConfig();
		 }
	});
	$('#domainsBox  a').click(function(){
		var init = $(this).data('init');
		
		if(init == 'all'){
			 $('#domainsBox  a').removeClass('active') ;
			 $(this).addClass('active') ;
			 updateConfig();
			 return false; 
		}else{
			$('#domainsBox  a').eq(0).removeClass('active') ;
		}
		if($(this).data('type') != undefined){
			  if($(this).hasClass('active')){
				  $(this).removeClass('active')  
			  }else{
				  $(this).addClass('active')  
			  }
			  updateConfig();
		}
	});
})
function keySearch(){
	 if (event.keyCode==13){ 
	      $('#btnSearch').click();
	 }
}
function updateConfig(){
	var regions = '';
	var domains = '';
	$('#areaBox  a.active').each(function(index, element) {
        var v = $(this).html();
		if(v !='全部' && v !='...')
		regions += regions==''?v:','+v;
    });
	searchConfig.regions = regions;
	$('#domainsBox  a.active').each(function(index, element) {
        var v = $(this).html();
		if(v !='全部' && v !='...')
		domains += domains==''?v:','+v;
    });
	searchConfig.domains = domains;
	searchConfig.condition = 1;
	searchConfig.page = 1;
	//getList();
}
function addhoverEvent(){
    //hover某处显示悬浮框  
    $(".displayDescri").mouseover(function(e){
        //获取鼠标位置函数
        var mousePos = mousePosition(e);  
        var  xOffset = 20;
        var  yOffset = 25;  
        $("#tooltip").css("display","block").css("position","absolute").css("top",(mousePos.y - yOffset) + "px").css("left",(mousePos.x + xOffset) + "px");  
        $("#tooltip").append($(this).prev().html());
     });
     //鼠标离开表格隐藏悬浮框  
     $(".displayDescri").mouseout(function(){  
         $("#tooltip").empty();  
         $("#tooltip").css("display","none");  
     });
}
//获取鼠标坐标  
function mousePosition(ev){   
    ev = ev || window.event;   
    if(ev.pageX || ev.pageY){   
        return {x:ev.pageX, y:ev.pageY};   
    }   
    return {   
        x:ev.clientX + document.body.scrollLeft - document.body.clientLeft,   
        y:ev.clientY + document.body.scrollTop - document.body.clientTop   
    };   
}
function getList(){
    var url = "http://www.usources.cn/api/agent/search";
	var loading = layer.msg('正在获取数据，请等候...', {icon: 16,time: 999999, shade: [0.3, '#000']});
	$.ajax({
		  url:url+'?'+Math.random(),
		  type:'GET',
		   xhrFields: {
		   withCredentials: true
		  },
		  crossDomain:true,
		  data:{pageNo:searchConfig.page,pageSize:searchConfig.pageSize,domains:searchConfig.domains,keyWord:searchConfig.keyWord,regions:searchConfig.regions,jsonpCallback:'userCollects'},
		  success:function(data){
			 layer.close(loading);
			 if(data.code==200){
				 var  l = data.data.list.length;
				 if(l==0){
				     //layer.msg('没有找到',{icon:1});
					 $("#agentResult").empty().append('<div class="soso_list"><p style=" text-align:center">未找到搜索结果!</p></div>');
					 $("#pageNav").Page({
						  totalPages:0,//分页总数
						  liNums: 5,//分页的数字按钮数(建议取奇数)
						  activeClass: 'activP', //active 类样式定义
						  callBack : function(page){
								//console.log(page)
								searchConfig.page = page;
								getList();
						  }
					  });
					 return false;	 
				 }
				 var listdata = '';
				 for(var i in data.data.list){
					 var res = data.data.list[i];
                     var agentUrl = res.agentUrl;
					 var ysc = '<a href="javascript:;" style="float:right" onclick="addToCollect('+res.id+',this)"><u>加入收藏</u></a>';
					 if(res.collected==true) ysc = '<a href="javascript:;" style="float:right">已收藏</a>';
                     var statistics = res.statistics;
                     var statisticStr = '';
                     if(statistics.length == 0){
                        statisticStr = '<div style="height:30px"><p>暂无数据集信息</p></div>';
                     }else if(statistics.length == 1){
                        var classUrl = statistics[0].classUrl;
                        var conceptUrl = classUrl.split("ontology/")[1];
                        var descri = statistics[0].description ? statistics[0].description:"无描述";
                        statisticStr = '<div><p><a href="detail.html?id='+res.id+'#iri=http://www.usources.cn/concept/'+conceptUrl+'" target="_blank" style="color:#478bd1;font-size:14px;"><span style="display:none">'+descri+'</span><u class="displayDescri">'+(statistics[0].name?statistics[0].name:classUrl.substring(classUrl.lastIndexOf("/")+1,classUrl.length))+'</u></a> (实例:'+statistics[0].insNum+'个/三元组:'+statistics[0].trisNum+'条)</p></div>'
                     }else if(statistics.length == 2){
                        var classUrl1 = statistics[0].classUrl;
                        var classUrl2 = statistics[1].classUrl;
                        var conceptUrl1 = classUrl1.split("ontology/")[1];
                        var conceptUrl2 = classUrl2.split("ontology/")[1];
                        var descri1 = statistics[0].description ? statistics[0].description:"无描述";
                        var descri2 = statistics[1].description ? statistics[1].description:"无描述";
                        statisticStr = '<div><p style="width:50%;display:inline-block"><a href="detail.html?id='+res.id+'#iri=http://www.usources.cn/concept/'+conceptUrl1+'" target="_blank" style="color:#478bd1;font-size:14px;"><span style="display:none">'+descri1+'</span><u class="displayDescri">'+(statistics[0].name?statistics[0].name:classUrl1.substring(classUrl1.lastIndexOf("/")+1,classUrl1.length))+'</u></a> (实例:'+statistics[0].insNum+'个/三元组:'+statistics[0].trisNum+'条)</p><p style="width:50%;display:inline-block"><a href="detail.html?id='+res.id+'#iri=http://www.usources.cn/concept/'+conceptUrl2+'" style="color:#478bd1;font-size:14px;" target="_blank"><span style="display:none">'+descri2+'</span><u class="displayDescri">'+(statistics[1].name?statistics[1].name:classUrl2.substring(classUrl2.lastIndexOf("/")+1,classUrl2.length))+'</u></a>(实例:'+statistics[1].insNum+'个/三元组:'+statistics[1].trisNum+'条)</p></div>'
                     }else{
                        statisticStr += '<div>';
                         for(var j in statistics){
                            var classUrl = statistics[j].classUrl;
                            var conceptUrl = classUrl.split("ontology/")[1];
                            var descri = statistics[j].description ? statistics[j].description:"无描述";
                            if(j != 2){
                                statisticStr += '<p style="width:42%;display:inline-block"><a href="detail.html?id='+res.id+'#iri=http://www.usources.cn/concept/'+conceptUrl+'" style="color:#478bd1;font-size:14px;" target="_blank"><span style="display:none">'+descri+'</span><u class="displayDescri">'+(statistics[j].name?statistics[j].name:classUrl.substring(classUrl.lastIndexOf("/")+1,classUrl.length))+'</u></a>(实例:'+statistics[j].insNum+'个/三元组:'+statistics[j].trisNum+'条)</p>'
                            }else{
                                statisticStr += '<p style="width:16%;display:inline-block;text-align:center"><a onclick="openStatistic(this)" class="openStatisticBtn handPoint" style="color:#478bd1">展开（数据集）↓</a></p></div><div style="display:none"><p style="width:42%;display:inline-block"><a href="detail.html?id='+res.id+'#iri=http://www.usources.cn/concept/'+conceptUrl+'" style="color:#478bd1;font-size:14px;" target="_blank"><span style="display:none">'+descri+'</span><u class="displayDescri">'+(statistics[j].name?statistics[j].name:classUrl.substring(classUrl.lastIndexOf("/")+1,classUrl.length))+'</u></a>(实例:'+statistics[j].insNum+'个/三元组:'+statistics[j].trisNum+'条)</p>'
                            }
                         }
                         statisticStr += "</div>";
                     }
                     // <a href="detail.html?id='+res.id+'#iri=http://www.usources.cn/concept/'+res.agentUrl+'" style="font-size:18px; color:#1a0dab" target="_blank"></a>
					 listdata += ' <div class="soso_left l"><div class="soso_list"><div class="soso_list_i l" style="width:20%"><img src="http://www.usources.cn/'+res.imgUrl+'" /></div><div class="soso_list_c r"><div class="soso_list_ct"><h2 style="font-size:15px;"><b>'+res.title+'</b>[<a style="color:#478bd1;font-size:14px;" href="http://usources.cn/visweb/#iri=http://www.usources.cn/concept/'+res.agentUrl+'" target="_blank">预览图谱</a>]</h2><span style="float:left; margin-left:10px"><img src="../images/stars/'+res.dataStar+'.png" style="height:16px"></span><font color="#12124f"> ✓ 已对接，'+res.createdDate+' 最新更新</font>'+ysc+'</div><div class="clear"></div><div class="soso_list_cc"><p>'+res.briefIntro+'</p></div>'+statisticStr+'</div></div></div>';
				 }
				 $("#agentResult").empty().append(listdata);
				 if(searchConfig.condition==1){
					var rInfo = data.data.info;
					var totalSize =  rInfo.hasOwnProperty('totalSize')?rInfo.totalSize:-1;
				    var totalPages = $("#pageNav").data('all');
					if(totalSize != -1){
						totalPages = Math.ceil(totalSize/searchConfig.pageSize);
					}
					$("#pageNav").Page({
						  totalPages:totalPages,//分页总数
						  liNums: 5,//分页的数字按钮数(建议取奇数)
						  activeClass: 'activP', //active 类样式定义
						  callBack : function(page){
								//console.log(page)
								searchConfig.page = page;
								getList();
						  }
					});
					searchConfig.condition =0;
				 }
                if(!(!searchConfig.keyWord && !searchConfig.domains && !searchConfig.regions)){
                    var btns = $(".openStatisticBtn");
                    for(var i=0;i<btns.length;i++){
                        btns.eq(i).html("收起↑").parent().parent().next().slideToggle();
                    }
                }
                var keyWords = data.data.info.keyWords;
                if(keyWords){
                    $("#agentResult").highlight(keyWords);
                }
			 }else{
				layer.msg('未知code的错误！',{icon:2});
			 }
             addhoverEvent();
		},dataType:'json'}
	);
}
function addToCollect(agentId,obj){
	var url = "http://www.usources.cn/api/user/collectAgent";
	var loading = layer.msg('正在加入收藏，请等候...', {icon: 16,time: 999999, shade: [0.3, '#000']});
    $.ajax({
	  url:url+'?'+Math.random(),
	  type:'GET',
	   xhrFields: {
	   withCredentials: true
	  },
	  crossDomain:true,
	  data:{agentId:agentId,jsonpCallback:'delUserCollect'},
	  success:function(data){
		   layer.close(loading);
		   if(data.code==200){
			   layer.msg('加入成功！',{icon:1});
			   $(obj).html('已收藏');
			   $(obj).removeAttr('onclick');
		   }else{
			  layer.msg('请先登录！',{icon:2});
		      setTimeout(function(){ location.href ='login.html';},2000)
		   }
	},dataType:'json'});
}
function getCollectNums(){
    var url = "http://www.usources.cn/api/agent/userCollectNum";
	var loading = layer.msg('正在获取收藏数，请等候...', {icon: 16,time: 999999, shade: [0.3, '#000']});
    $.ajax({
	  url:url+'?'+Math.random(),
	  type:'GET',
	   xhrFields: {
	   withCredentials: true
	  },
	  crossDomain:true,
	  data:{jsonpCallback:'userCollectNum'},
	  success:function(data){
		   layer.close(loading);
		   if(data.code==200){
                $('#collectNums').html(data.data.info.num);
		   }else{
                $('#mycollectnums').remove();   
		   }
	},dataType:'json'});
}
function getSearch(){
	 // var url = "http://www.usources.cn/api/user/searchHistory";
	 //   var loading = layer.msg('正在获取搜索记录，请等候...', {icon: 16,time: 999999, shade: [0.3, '#000']});
	 //   $.ajax({
		//   url:url+'?'+Math.random(),
		//   type:'GET',
		//    xhrFields: {
		//    withCredentials: true
		//   },
		//   crossDomain:true,
		//   data:{jsonpCallback:'searchHistory'},
		//   success:function(data){
		// 	   layer.close(loading);
		// 	   if(data.code==200){
		// 		   var listdata = '';
		// 		  for(var i in data.data.list){
		// 			 var res = data.data.list[i];
					
		// 		      if(res.keyword !='' || res.domains !='' || res.regions!='')
		// 			      listdata += '<li data-keyword="'+res.keyword+'" data-domains="'+res.domains+'" data-regions="'+res.regions+'"><h3><a href="javascript:;" target="_blank">'+res.keyword+'&nbsp;&nbsp;</a></h3><p>领域:'+res.domains+' &nbsp;&nbsp;地区：'+res.regions+'</p></li>';
		// 		 }
				
		// 		 if(listdata !=''){
		// 		    $("#searchResult").empty().append(listdata);
		// 		 }else{
		// 			$('#searchResultParent').remove();
		// 			$("#agentResult").width('100%');
		// 		 }
		// 	   }else{
					$('#searchResultParent').remove();
					$("#agentResult").width('100%');
		// 	   }
		//   },dataType:'json'});
	
}
function openStatistic(e){
    if($(e).parent().parent().next().css("display") == 'none'){
        $(e).html("收起↑").parent().parent().next().slideToggle();
    }else{
        $(e).html("展开（数据集）↓").parent().parent().next().slideToggle();
    }
}
getCollectNums();
getSearch();
$(function(){
	$(document).on("click",'#searchResult li',function(){
		var keyword = $(this).data('keyword');
		var regions = $(this).data('regions');
		var domains = $(this).data('domains');
		var urls = ('ziyuan.html?keyWord='+escape(keyword)+"&domains="+escape(domains)+"&areas="+escape(regions));
		window.location.href = urls;
   });
})

</script>